package com.fyqp.mapper;

import com.fyqp.pojo.ProductType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author efire
 * @since 2022-02-19
 */
public interface ProductTypeMapper extends BaseMapper<ProductType> {

    Integer isExist(String name);

    Integer isExistWithId(@Param("name") String name, @Param("id") Long id);
}
